/**
 * @type {RouteRecordRaw[]}
 */
export default [
  {
    path: "/",
    name: "Index",
    component: () => import("@/views/Index/index.vue"),
    meta: {
      title: "仪表盘",
    },
  },
  {
    path: "/demo",
    name: "Demo",
    component: () => import("@/views/Demo/index.vue"),
    meta: {
      title: "示例",
    },
    // redirect: "/table"
  },
  {
    path: "/table",
    name: "Table",
    component: () => import("@/views/Demo/TablePage/index.vue"),
    meta: {
      title: "表格",
    },
  },
  {
    path: "/form",
    name: "Form",
    component: () => import("@/views/Demo/FormPage/index.vue"),
    meta: {
      title: "表单",
    },
  },
  {
    path: "/search_table",
    name: "SearchTablePage",
    component: () => import("@/views/Demo/SearchTablePage/index.vue"),
    meta: {
      title: "搜索表格",
    },
  },
  {
    path: "/context_menu",
    name: "ContextMenuPage",
    component: () => import("@/views/Demo/ContextMenuPage/index.vue"),
    meta: {
      title: "右键菜单",
    },
  },
  {
    path: "/virtual_list",
    name: "VirtualList",
    component: () => import("@/views/Demo/VirtualListPage/index.vue"),
    meta: {
      title: "虚拟列表",
    },
  },
  {
    path: "/editor",
    name: "Editor",
    component: () => import("@/views/Demo/EditorPage/index.vue"),
    meta: {
      title: "编辑器",
    },
  },
  {
    path: "/crud",
    name: "CRUD",
    component: () => import("@/views/SystemSetting/CRUD/index.vue"),
    meta: {
      title: "CRUD生成",
    },
  },
  {
    path: "/codeBuilder",
    name: "CodeBuilder",
    component: () => import("@/views/SystemSetting/CodeBuilder/index.vue"),
    meta: {
      title: "代码生成",
    },
  },
  {
    path: "/systemInfo",
    component: () => import("@/views/SystemSetting/SystemInfo/index.vue"),
    meta: {
      title: "项目结构",
    },
  },
];
